package com.carhailing.coupons.service;

import com.alipay.api.AlipayApiException;
import com.carhailing.common.config.AlipaySign;
import com.carhailing.common.domain.order.CarOrderRefund;
import com.carhailing.common.domain.order.CarPayRecord;
import com.carhailing.common.exception.BusinessException;

import javax.servlet.http.HttpServletRequest;
import java.io.UnsupportedEncodingException;
import java.util.List;

/**
 * @Author: Gd
 * @package: com.carhailing.coupons.service
 * @Project: Online_Taxi_Project
 * @Name: CouponsOrderService
 * @Date: 2024-7-28 21:43
 */
public interface CouponsOrderService {
//    String paySeckillOrder(Long orderNumber, String type) throws BusinessException;
    String paySeckillOrder(AlipaySign alipaySign) throws BusinessException;

    void payNotity(HttpServletRequest request) throws BusinessException, AlipayApiException, UnsupportedEncodingException;


    List<CarPayRecord>  selectCarPayRecordStatus(int status);

    void updateCarOrder(CarPayRecord carPayRecord);

    void refund(Long orderNumber, String type) throws Exception;

    void updateCarOrderRefund(CarOrderRefund carOrderRefund);
}
